package com.cin.cma.common.enums;

import lombok.Getter;

/**
 *
 * @Date：2024-07-17 12:25
 */
@Getter
public enum JyServerErrorCode {
    CLIENT_OFFLINE("CLIENT_OFFLINE", "客户端不在线"),
    FAILED("FAILED", "失败"),
    EXCEPTION("EXCEPTION", "异常"),
    PARAMS_EMPTY("PARAMS_EMPTY", "参数为空"),
    DATE_FORMAT_ERROR("DATE_FORMAT_ERROR", "日期格式错误"),
    FUNCTION_CODE_ERROR("FUNCTION_CODE_ERROR", "函数代码错误"),
    PASSPORT("PASSPORT", "接入商用户验证不通过"),
    NEED_PERMISSION("NEED_PERMISSION", "接入商用户需要访问权限"),
    INVALID_SIGNATURE("INVALID_SIGNATURE", "无效的数字签名"),
    DATA_FORMAT_ERROR("DATA_FORMAT_ERROR", "数据格式错误"),
    PASS_NUM_FALSE_THE_END("PASS_NUM_FALSE_THE_END", "未知错误或无法获取令牌状态"),
    PASS_NUM_LENGTH_ERROR("PASS_NUM_LENGTH_ERROR", "令牌号码长度必须大于等于16位"),
    PASS_NUM_CAN_NOT_BE_FOUND("PASS_NUM_CAN_NOT_BE_FOUND", "查无此令牌数据"),
    PASS_NUM_FALSE_ON_GOING("PASS_NUM_FALSE_ON_GOING", "此令牌状态正在执行中,不能重新执行"),
    NOT_FOUND_LOCATION("NOT_FOUND_LOCATION", "影院信息不存在"),
    TICKET_SHOW_DETAILS_NOT_FOUND("TICKET_SHOW_DETAILS_NOT_FOUND", "排期没有找到"),
    TICKET_SESSION_IN_VAILD("TICKET_SESSION_IN_VAILD", "场次信息异常"),
    TICKET_SESSION_CLOSE("TICKET_SESSION_CLOSE", "场次已结束"),
    TICKET_LOCK_SEAT_FAIL("TICKET_LOCK_SEAT_FAIL", "锁定座位失败"),
    POS_ORDER_INTERFACE_ONLY_RETURN("POS_ORDER_INTERFACE_ONLY_RETURN", "当前接口只支持退货和取消订货"),
    POS_NUMBER_IS_NOT_NULL("POS_NUMBER_IS_NOT_NULL", "单号不能为空"),
    SALES_USER_NOT_FOUND("SALES_USER_NOT_FOUND", "查无此用户"),
    SALES_ROLE_NOT_FOUND("SALES_ROLE_NOT_FOUND", "查无此角色"),
    SHIFT_OPERATION_DATE_NOT_FOUND("SHIFT_OPERATION_DATE_NOT_FOUND", "找不到操作日信息"),
    SHIFT_OPERATION_DATE_CLOSED("SHIFT_OPERATION_DATE_CLOSED", "操作日已关闭"),
    SHIFT_DAILY_CASH_FLOAT_NOT_FOUND("SHIFT_DAILY_CASH_FLOAT_NOT_FOUND", "找不到备用金信息"),
    SHIFT_GET_CASH_FLOAT_FIRST("SHIFT_GET_CASH_FLOAT_FIRST", "请先领取备用金"),
    SHIFT_INSERT_DAILY_CASH_FLOAT_FAIL("SHIFT_INSERT_DAILY_CASH_FLOAT_FAIL", "插入上缴现金表失败"),
    TICKET_WRONG_SHIFT_NO_OR_OPRN_DATE("TICKET_WRONG_SHIFT_NO_OR_OPRN_DATE", "班次号或操作日错误"),
    TICKET_BOOKING_NOT_FOUND("TICKET_BOOKING_NOT_FOUND", "查无此订单信息"),
    TICKET_REFUND_REFUND_NONE("TICKET_REFUND_REFUND_NONE", "该订单已退票完毕，不能再退票"),
    TICKET_GET_IBT_FAIL("TICKET_GET_IBT_FAIL", "获取渠道系统设置失败"),
    TICKET_HAS_REFUNDED("TICKET_HAS_REFUNDED", "该票已退"),
    TICKET_UPDATE_REF_TICKET_FAIL("TICKET_UPDATE_REF_TICKET_FAIL", "Update Refund Ticket 失败"),
    TICKET_SEAT_NOT_FOUND("TICKET_SEAT_NOT_FOUND", "查无此座位"),
    TICKET_APLLY_TOTAL_NOT_EQUAL_THROUGH_TOTAL("TICKET_APLLY_TOTAL_NOT_EQUAL_THROUGH_TOTAL", "审核通过的场次数与连场的场次数不一致"),
    TICKET_REFUND_NOT_APPLY("TICKET_REFUND_NOT_APPLY", "退票审核未通过"),
    TICKET_UPDATE_REFUND_CONFIRM_FLG_ERROR("TICKET_UPDATE_REFUND_CONFIRM_FLG_ERROR", "更新退票标识失败"),
    TICKET_UPDATE_INF_REFUND_LCHG_ERROR("TICKET_UPDATE_INF_REFUND_LCHG_ERROR", "更新退票修改信息失败"),
    TICKET_PAYMENT_NOT_FOUND("TICKET_PAYMENT_NOT_FOUND", "付款表为空"),
    TICKET_INSERT_REFUND_FAIL("TICKET_INSERT_REFUND_FAIL", "插入 Refund 失败"),
    TICKET_UPDATE_REF_PAYMENT_FAIL("TICKET_UPDATE_REF_PAYMENT_FAIL", "Update Refund Payment 失败"),
    MEETING_ARREARAGE_NOT_FOUND("MEETING_ARREARAGE_NOT_FOUND", "查无此欠款单"),
    MEETING_GET_SALES_FAIL("MEETING_GET_SALES_FAIL", "获取业务员失败"),
    TICKET_PAYMENT_TYPE_NOT_FOUND("TICKET_PAYMENT_TYPE_NOT_FOUND", "查无此付款方式"),
    SHIFT_INSERT_FAIL("SHIFT_INSERT_FAIL", "写入轮班失败"),
    TICKET_NOT_REFUND_MULTIPLE_PAY_BOOKING_FEE("TICKET_NOT_REFUND_MULTIPLE_PAY_BOOKING_FEE", "不支持退还多种支付方式的手续费"),
    TICKET_INSERT_BDKG_FAIL("TICKET_INSERT_BDKG_FAIL", "插入BdasTicketBooking失败"),
    TICKET_INSERT_DAILY_TICKET_FAIL("TICKET_INSERT_DAILY_TICKET_FAIL", "插入Dti失败"),
    TICKET_CALL_CARD_CONSUME_FAIL("TICKET_CALL_CARD_CONSUME_FAIL", "没检测到使用会员卡支付信息"),
    TICKET_CALL_VOUCHER_CONSUME_FAIL("TICKET_CALL_VOUCHER_CONSUME_FAIL", "没检测到使用券的支付信息"),
    MEMBER_CARD_NOT_FOUND("MEMBER_CARD_NOT_FOUND", "查无此卡"),
    MEMBER_CARD_USE_POLICY_NOT_FOUND("MEMBER_CARD_USE_POLICY_NOT_FOUND", "查无此使用政策"),
    MEMBER_CARD_GRADE_NOT_FOUND("MEMBER_CARD_GRADE_NOT_FOUND", "查无此等级政策"),
    MEMBER_CARD_STATE_ERROR("MEMBER_CARD_STATE_ERROR", "卡状态不符"),
    MEMBER_CARD_NOT_SUPPER_RECHARGE("MEMBER_CARD_NOT_SUPPER_RECHARGE", "卡不允许充值"),
    MEMBER_CARD_NOT_RECHARGE_MULTIPLE("MEMBER_CARD_NOT_RECHARGE_MULTIPLE", "非最少充值额倍数"),
    MEMBER_CARD_MAX_AMOUNT("MEMBER_CARD_MAX_AMOUNT", "充值金额太多，需小于99999"),
    MEMBER_CARD_GETORDERCODE_ERROR("MEMBER_CARD_GETORDERCODE_ERROR", "充值单号异常"),
    MEMBER_CARD_INSERT_ERROR("MEMBER_CARD_INSERT_ERROR", "插入数据库数据异常"),
    MEMBER_CARD_THIRD_PAYMENT_FAILED("MEMBER_CARD_THIRD_PAYMENT_FAILED", "第三方交易未完成"),
    MEMBER_CARD_ISSUED("MEMBER_CARD_ISSUED", "卡已发出");
    private final String code;
    private final String message;

    JyServerErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

}
